package com.youlu.campus.service.order;

import com.youlu.campus.entity.VO.req.LogisticsOrderQueryVO;
import com.youlu.campus.entity.order.LogisticsOrder;
import com.youlu.campus.entity.order.dto.LogisticsOrderDto;
import com.youlu.campus.entity.order.dto.LogisticsOrderQueryDto;
import org.springframework.data.domain.Page;

import java.util.HashMap;

public interface LogisticsOrderService {
    boolean create(LogisticsOrder req);

    boolean update(LogisticsOrder req);

    LogisticsOrder findOne(String id);

    boolean delete(String id);

    Page<LogisticsOrder> list(LogisticsOrderQueryVO req);

    /**
     * 处理物流信息
     *
     * @param req
     * @return
     */
    boolean handle(LogisticsOrderDto req,String mode);

    /**
     * 获取物流订单详情
     *
     * @param orderId
     * @return
     */
    LogisticsOrderQueryDto getLogisticsOrderDetail(String orderId);

    /**
     * 订单查询模式
     * @param platform
     * @return
     */
    HashMap<String, Object> orderQueryMode(String platform);
}
